home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 84 / MacAddict_084_2003_08.iso / pc / Software / Utilities / Safari Enhancer 2.0.1.dmg / Safari Enhancer.app / Contents / Resources / html4.css < prev    next >
Cascading Style Sheet File  |  2003-05-25  |  8KB  |  525 lines

  1. /* 
  2.  * The default style sheet used by khtml to render HTML pages
  3.  * (C) Lars Knoll (knoll@kde.org) 2000
  4.  *
  5.  * Konqueror/khtml relies on the existence of this style sheet for
  6.  * rendering. Do not remove or modify this file unless you know
  7.  * what you are doing.
  8.  */
  9.  
  10. html {
  11.     display: block;
  12.  
  13. /*
  14.  * head and its children all have display=none
  15.  */
  16.  
  17. head { 
  18.     display: none;
  19. }
  20.      
  21. meta {
  22.     display: none;
  23. }
  24.  
  25. title {
  26.     display: none;
  27. }
  28.  
  29. link {
  30.     display: none;
  31. }
  32.  
  33. style {
  34.     display: none;
  35. }
  36.  
  37. script {
  38.     display: none;
  39. }
  40.  
  41. /*
  42.  * generic block level elements
  43.  */
  44.  
  45. body {
  46.     display: block;
  47.     margin: 8px;
  48. }
  49.  
  50. p {
  51.     display: block;
  52.     margin: 1.0__qem 0px;
  53. }
  54.  
  55. div {
  56.     display: block;
  57. }
  58.  
  59. layer {
  60.     display: block;
  61. }
  62.  
  63. address {
  64.     display: block;
  65. }
  66.       
  67. blockquote {
  68.     display: block;
  69.     margin: 1__qem 40px 1em 40px;
  70. }
  71.  
  72. Q        {
  73.          display: inline;
  74. }
  75.  
  76. Q:before {
  77.          content: '"';
  78.     /*   content: open-quote;   */
  79. }
  80.  
  81. Q:after  {
  82.          content: '"';
  83.     /*   content: close-quote;  */
  84. }
  85.  
  86. IFRAME {
  87.     width: 300px; height:150px;
  88. }
  89.  
  90. CENTER { 
  91.     display: block;
  92.     /* special centering to be able to emulate the html4/netscape behaviour */
  93.     text-align: \2d konq-center;
  94. }  
  95.       
  96. HR  { 
  97.         display: block; 
  98.         margin-top: 12px; 
  99.         margin-bottom: 12px; 
  100.         border-style: inset;
  101.         border-width: 1px;
  102.         margin-left: 1px; /* will be overwritten by ALIGN */ 
  103.         margin-right: 1px; /* will be overwritten by ALIGN */
  104.         \2d konq-flow-mode: \2d konq-around-floats;
  105.  
  106. MAP { 
  107.     display: inline;
  108.  
  109.  
  110. /* 
  111.  * heading elements 
  112.  */
  113.       
  114. H1 { 
  115.     display: block;
  116.     font-size: 2em; 
  117.     margin: .67__qem auto .67em auto;
  118.     font-weight: bolder;
  119. }
  120.       
  121. H2 { 
  122.     display: block;
  123.     font-size: 1.5em; 
  124.     margin: .83__qem auto .83em auto;
  125.     font-weight: bolder;
  126. }
  127.       
  128. H3 { 
  129.     display: block;
  130.     font-size: 1.17em; 
  131.     margin: 1__qem auto 1em auto;
  132.     font-weight: bolder;
  133. }
  134.       
  135. H4 {
  136.     display: block;
  137.     margin: 1.33__qem auto 1.33em auto;
  138.     font-weight: bolder;
  139. }
  140.  
  141. H5 { 
  142.     display: block;
  143.     font-size: .83em; 
  144.     margin: 1.67__qem auto 1.67em auto;
  145.     font-weight: bolder;
  146. }
  147.  
  148. H6 { 
  149.     display: block;
  150.     font-size: .67em; 
  151.     margin: 2.33__qem auto 2.33em auto;
  152.     font-weight: bolder;
  153. }
  154.  
  155. /* 
  156.  * tables
  157.  */
  158.  
  159. TABLE { 
  160.     display: table;
  161.     border-collapse: separate;
  162.     text-align: \2d konq-auto;
  163.     border-spacing: 2px;
  164.     border-color: gray;
  165.         \2d konq-flow-mode: \2d konq-around-floats;
  166. }
  167.  
  168. TD[align=left] > TABLE {
  169.     margin-right: auto;
  170. }
  171.  
  172. TD[align=right] > TABLE {
  173.     margin-left: auto;
  174. }
  175.  
  176. TABLE[align="center"] { 
  177.     margin-left: auto !important; 
  178.     margin-right: auto !important;
  179. }
  180.  
  181. THEAD { 
  182.     display: table-header-group; 
  183.     vertical-align: middle;
  184.     border-color: inherit;
  185. }
  186.       
  187. TBODY { 
  188.     display: table-row-group;
  189.     vertical-align: middle; 
  190.     border-color: inherit;
  191. }
  192.       
  193. TFOOT { 
  194.     display: table-footer-group; 
  195.     vertical-align: middle;
  196.     border-color: inherit;
  197. }
  198.  
  199. COL { 
  200.     display: table-column; 
  201. }
  202.       
  203. COLGROUP { 
  204.     display: table-column-group; 
  205. }
  206.  
  207. TR { 
  208.     display: table-row;
  209.     vertical-align: inherit; 
  210.     border-color: inherit; 
  211. }
  212.       
  213.       
  214. TD, TH { 
  215.     display: table-cell;
  216.     vertical-align: inherit;
  217. }
  218.       
  219. TH { 
  220.     font-weight: bolder; 
  221.     text-align: center;
  222. }
  223.  
  224. CAPTION { 
  225.     display: table-caption;  
  226.     text-align: \2d konq-center; 
  227. }
  228.  
  229. /* rules to deal with right-aligned divs. -dwh */
  230. DIV[align="right"] > TABLE,
  231. DIV[align="right"] > P,
  232. DIV[align="right"] > DIV
  233.  { margin-left: auto; margin-right: 0px; }
  234.  
  235. /*
  236.  * Lists
  237.  */
  238.  
  239. UL, MENU, DIR {
  240.         display: block;
  241.         list-style-type: disc;
  242.         margin: 1__qem 0 1em 0;
  243.         padding-left: 40px;
  244. }
  245.  
  246. OL {
  247.         display: block;
  248.         list-style-type: decimal;
  249.         margin: 1__qem 0 1em 0;
  250.         padding-left: 40px;
  251. }
  252.  
  253. LI {
  254.         display: list-item;
  255. }
  256.  
  257.  
  258. UL UL { 
  259.     list-style-type: circle;
  260. }
  261.  
  262. OL UL { 
  263.     list-style-type: circle;
  264. }
  265.  
  266. UL UL UL { 
  267.     list-style-type: square;
  268. }
  269.       
  270.  
  271. DD {
  272.     display: block;
  273.     margin-left: 40px;
  274. }
  275.  
  276. DL {
  277.     display: block;
  278.     margin: 1__qem 0 1em 0;
  279.  
  280. DT {
  281.     display: block;
  282. }
  283.  
  284. /* for right to left */
  285.       
  286. *[dir="rtl"] UL, 
  287. *[dir="rtl"] OL,  
  288. *[dir="rtl"] DIR, 
  289. *[dir="rtl"] MENU, 
  290. *[dir="rtl"] DD { 
  291.     margin-right:40px; 
  292.     margin-left: auto;
  293. }
  294.       
  295. OL UL, 
  296. UL OL,
  297. UL UL, 
  298. OL OL { 
  299.     margin-top: auto; 
  300.     margin-bottom: auto; 
  301. }
  302.  
  303. /*
  304.  * form elements
  305.  */
  306.  
  307. FORM {
  308.     display: block;
  309.     margin: 0__qem 0 1em 0;
  310. }
  311.  
  312. FIELDSET {
  313.     display: block;
  314.     margin: 1.0em auto;
  315.  
  316. BUTTON {
  317.         display: block;
  318.         border: 2px outset ButtonFace;
  319.         background-color: ButtonFace;
  320.         color: ButtonText;
  321.         padding: 2px 2px 2px 2px;
  322.         cursor: default;
  323. }
  324.  
  325. BUTTON:active {
  326.         border-style: inset;
  327. }
  328.  
  329. /* XXX Need to implement support for CSS2 system fonts, so that I don't have to hard code this.
  330.    -dwh */
  331. INPUT, TEXTAREA {
  332.     font: 11px 'Lucida Grande';
  333.     margin: 3px;
  334. }
  335.  
  336. input[type="button"], input[type="submit"], input[type="reset"]
  337. {
  338.     margin: 2px;
  339. }
  340.  
  341. input[type="image"] {
  342.     margin: 0px;
  343. }
  344.  
  345. INPUT[type="hidden"] {
  346.     display: none; 
  347. }
  348.  
  349. INPUT[type="radio"], INPUT[type="checkbox"] {
  350.         margin: 3px 0.5ex;
  351. }
  352.  
  353. OPTION, 
  354. OPTGROUP, 
  355. AREA,
  356. PARAM  { 
  357.     display: none; 
  358. }
  359.  
  360. SELECT { margin: 2px; }
  361.  
  362. /*
  363.  * inline elements
  364.  */      
  365.       
  366. U, 
  367. INS { 
  368.     text-decoration: underline;
  369. }
  370.       
  371. STRONG,
  372. B { 
  373.     font-weight: bolder; 
  374. }
  375.       
  376. I, 
  377. CITE, 
  378. EM,
  379. VAR, 
  380. ADDRESS { 
  381.     font-style: italic; 
  382. }
  383.       
  384. TT, 
  385. CODE,
  386. KBD, 
  387. SAMP { 
  388.     font-family: monospace; 
  389. }
  390.       
  391. PRE,
  392. XMP, 
  393. PLAINTEXT { 
  394.     display: block;
  395.     font-family: monospace; 
  396.     white-space: pre; 
  397.     margin: 1__qem 0;
  398. }
  399.       
  400. BIG { 
  401.     font-size: larger; 
  402. }
  403.       
  404. SMALL { 
  405.     font-size: smaller; 
  406. }
  407.  
  408. S, 
  409. STRIKE, 
  410. DEL  { 
  411.     text-decoration: line-through; 
  412. }
  413.  
  414. SUB { 
  415.     vertical-align: sub;
  416.     font-size: smaller; 
  417. }
  418. SUP { 
  419.     vertical-align: super;    
  420.     font-size: smaller;
  421. }
  422.  
  423. /* ### not supported at the moment
  424. ABBR, ACRONYM { 
  425.     font-variant: small-caps; 
  426.     letter-spacing: 0.1em 
  427. }
  428. */
  429. abbr, 
  430. acronym {
  431.     font-style: italic;
  432. }
  433.  
  434. :focus          { outline: 1px dotted invert }
  435. a:link          { color: blue; text-decoration: none; }
  436. a:link:active          { color: black; outline: gray 1px dotted; }
  437. a:visited              { color: navy; text-decoration: none; }
  438. a:visited:active       { color: black; outline: gray 1px dotted; }
  439.  
  440. /* ### :before is not supported at the moment
  441.       BR:before       { content: "\n" }
  442. */
  443.  
  444.  
  445. /* Bidirectionality settings (do not change) */
  446.  
  447. BDO[DIR="ltr"]  { 
  448.     direction: ltr; 
  449.     unicode-bidi: bidi-override; 
  450. }
  451.  
  452. BDO[DIR="rtl"]  { 
  453.     direction: rtl; 
  454.     unicode-bidi: bidi-override;
  455. }
  456.  
  457. /* ### this selector seems to be still broken ...
  458.       *[DIR="ltr"]    { direction: ltr; unicode-bidi: embed }
  459.       *[DIR="rtl"]    { direction: rtl; unicode-bidi: embed }
  460. */
  461.       
  462. /* Elements that are block-level in HTML4 */
  463. /* ### don't support unicode-bidi at the moment
  464.       ADDRESS, BLOCKQUOTE, BODY, DD, DIV, DL, DT, FIELDSET,
  465.       FORM, FRAME, FRAMESET, H1, H2, H3, H4, H5, H6, IFRAME,
  466.       NOSCRIPT, NOFRAMES, OBJECT, OL, P, UL, APPLET, CENTER,
  467.       DIR, HR, MENU, PRE, LI, TABLE, TR, THEAD, TBODY, TFOOT,
  468.       COL, COLGROUP, TD, TH, CAPTION
  469.                       { unicode-bidi: embed }
  470. */
  471.       
  472. /* End bidi settings */
  473.  
  474. /*
  475.  * other elements
  476.  */
  477.  
  478. noframes {
  479.     display: none;
  480. }
  481.  
  482. frameset {
  483.     display: block;
  484. }
  485.  
  486. frame { 
  487.     display: block;
  488. }
  489.  
  490. nobr {
  491.         display: inline;
  492.         white-space: nowrap; 
  493. }
  494.  
  495. wbr {
  496.         white-space: normal;
  497. }
  498.  
  499. marquee {
  500.         display: none;
  501. }
  502.  
  503. /* noscript is handled internally, as it depends on the html settings */
  504.  
  505. /* media rules are commented out for the moment. We'll have to add
  506.  * them later. Lars, 23.12.99
  507.  */
  508.  
  509. /*
  510.       @media print {
  511.         @page         { margin: 10% }
  512.         H1, H2, H3,
  513.         H4, H5, H6    { page-break-after: avoid; page-break-inside: avoid }
  514.         BLOCKQUOTE,
  515.         PRE           { page-break-inside: avoid }
  516.         UL, OL, DL    { page-break-before: avoid }
  517.       }
  518.  
  519. */
  520.